package ltd.sshine.tracking.web.autoconfigure;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan(basePackages = {"ltd.sshine.tracking.web"})
public class WebAutoConfiguration {

//    @Bean
//    public Jackson2ObjectMapperBuilderCustomizer jackson2ObjectMapperBuilderCustomizer() {
//        return jacksonObjectMapperBuilder -> {
//            // long -> String
//            jacksonObjectMapperBuilder.serializerByType(Long.TYPE, ToStringSerializer.instance);
//            // Long -> String
//            jacksonObjectMapperBuilder.serializerByType(Long.class, ToStringSerializer.instance);
//        };
//    }
}
